import { AppstoreOutlined, MailOutlined, SettingOutlined } from '@ant-design/icons';
import {removeEmptyValues} from "@/utils/utils"
function getItem(
  label, // 标签名称
  key, // 路由key
  icon, // 图标
  children, // 子路由
  type, // 类型
) {
  let obj = {
    label,
    key,
    icon,
    children,
    type,
  };
  return removeEmptyValues(obj)
}
export const DataMenu = [
  getItem("数据查询", "/data/retrieval",),
  getItem("数据管理", "/data/manage"),
];

/** 顶部导航菜单 */
export const HeaderMenu = [
  getItem("主页", "/home",<MailOutlined/>),
  getItem("数据", "/data",<AppstoreOutlined/>, DataMenu),
];

